package com.xiaomi.dao;

import com.xiaomi.pojo.Cart;

import java.util.List;

/**
 * @ClassName Cartdao
 * @Author xiao宋
 * @Date 16:10  2022/9/14
 * @Version 1.0
 * @Description TODO
 */
public interface CartDao {
    Cart findCartByUidAndGoodsId(int uid, int goodsId);

    void insert(Cart cart);

    void update(Cart cart);

    List<Cart> getCart(int uid);

    void deleteCart(int uid, int goodsId);

    void clearCart(int uid);
}
